package com.gyy.flutter.plugin.flutter_plugin_print_a300.common;

/**
 * Created by msa1111 on 2018/5/29.
 */

public class DeviceUtil {

    //汉印A300
    public static final String A300 = "A300";

    /**
     * 蓝牙身份证识别
     */
    public static final String CVR_100B = "CVR-100B";


    /**
     * @param deviceName
     * @return
     */
    public static boolean isHMDevice(String deviceName) {

        if (deviceName == null) {
            return false;
        }
        return deviceName.contains(A300);
    }


    /**
     * 判断是不是 汉印, true是false不是
     */
    public static boolean isHM(String blueName, String mac) {
        if (blueName.contains("HM-A300") || (blueName.contains("LBEX") && mac != null && (mac.startsWith("FC") || mac.startsWith("00:15" + "")))) {
            return true; //HM-A300 ( 已配对 )
        }
        return false;
    }


}
